import http from './http'


// 正在热映数据
export const showing = (cityid, num) => {
    http.defaults.headers.info = '';
    return http.get(`https://m.maizuo.com/gateway?cityId=${cityid}&pageNum=${num}&pageSize=10&type=1&k=7358342`);
}
// 即将上映数据
export const coming = (cityid, num) => {
    http.defaults.headers.info = '';
    return http.get(`https://m.maizuo.com/gateway?cityId=${cityid}&pageNum=${num}&pageSize=10&type=2&k=9184595`);
}
// 详情页数据
export const Detail = (filmId) => {
    http.defaults.headers.info = 'info';
    return http.get(`https://m.maizuo.com/gateway?filmId=${filmId}&k=5365907`);
}
export const filmBanner = () => {
    http.defaults.headers.info = 'banner';
    return http.get("https://m.maizuo.com/gateway?type=2&cityId=440100&k=8463020");
}
// 城市数据
export const cityData = () => {
    http.defaults.headers.info = 'city';
    return http.get("https://m.maizuo.com/gateway?k=2197855");
}
// 电影院详情数据 
export const CinemaDetails = (cinemaId) => {
    http.defaults.headers.info = 'dianyin';
    return http.get(`https://m.maizuo.com/gateway/?cinemaId=${cinemaId}&k=522893`);
}
// 电影院地址数据
export const CinemaAddress = (cinemaId) => {
    http.defaults.headers.info = 'dianyindizhi';
    return http.get(`https://m.maizuo.com/gateway/?cinemaId=${cinemaId}&k=5203986`);
}
// 电影场次数据
export const FilmSessions = (cinemaId,id, shijianid) => {
    http.defaults.headers.info = 'schedule';
    return http.get(`https://m.maizuo.com/gateway/?filmId=${id}&cinemaId=${cinemaId}&date=${shijianid}&k=9479199`);
}
//资讯数据
export const infoData = () => {
    http.defaults.headers.info = 'SecondaryInfo';
    return http.get("https://m.maizuo.com/gateway?actId=ElzMZU125260");
}
//电影院选票
export const cinemas = (filmId, cityId) => {
    http.defaults.headers.info = 'cinemaData';
    return http.get("https://m.maizuo.com/gateway/?filmId=" + filmId + "&cityId=" + cityId);
}
// 每家电影院数据
export const cinemasList = () => {
    http.defaults.headers.info = 'cinemaList';
    return http.post("https://m.maizuo.com/gateway?cityId=440100&cinemaIds=7937");
}
// 影院详情
export const cinemadetail = (cinemaId) => {
    http.defaults.headers.info = 'cinemadetail';
    return http.get(`https://m.maizuo.com/gateway/?cinemaId=${cinemaId}&k=2101533`);
}
// 影院数据
export const cinemaListData = (cityId) => {
    http.defaults.headers.info = 'cinema';
    return http.get(`https://m.maizuo.com/gateway?cityId=${cityId}&ticketFlag=1&k=42248`);
}